home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / What's New? / Technical Documentaion / Macintosh Technotes and Q&As / technotes / te / InlineInputSample / About InlineInputSample next >
Encoding:
Text File  |  1997-12-10  |  5.4 KB  |  65 lines  |  [TEXT/R*ch]

  1. ÿáÿâöA◊# ◊# ÿÄÿ§
  2. Â,Times
  3. .+
  4. InlineInputSample ÿÔ
  5. Â
  6. (
  7. ONorbert Lindenberg, 93.12.10 ‹ © 1993 Apple Computer, Inc. All rights reserved. ÿfi
  8. 8Â[o-)VInlineInputSample is a sample application whose main purpose is to show you how to useDE-*Zthe TSMTE extension to provide inline input for TextEdit. It is intended as a companion toÉ&-*Sthe Macintosh Technical Note TE 27 ‹ Inline Input for TextEdit with TSMTE. In fact,-*Calmost all code shown in that Note is taken from InlineInputSample. ÿÃ
  9. bÂ-(
  10. UTo get a good feeling for what inline input does, you should read the introduction toÄí-
  11. (
  12. Wthe Text Services Manager chapter in Inside Macintosh: Text and the Technical Note, and-*Wplay with the application on KanjiTalk 7 (Japanese system software 7.1) or on any otherÕV-.*Lversion of System 7.1 with the Japanese Language Kit and the TSMTE extension”-*Zinstalled. To reproduce the conversion steps shown in the screen shots in Inside MacintoshDE-*ZText, you have to type ÒtoukyouÓ (for ÒTokyoÓ, the ÒuÓ following an ÒoÓ indicates that the-*ÒoÓ is a long vowel). ÿ˙
  13. *Â*¬-(
  14. SInlineInputSample is based on the older DTS sample applications TESample (in C) andº0-(
  15. ZTEStyleSample (in Pascal). Besides support for inline input, it incorporates the following-*changes: ÿÑ
  16. 8Â(
  17. ¥•-)Suniversal C interfaces (i.e., those supporting both 68K and PowerPC Macs) are used,*¬-&*Qand universal procedure pointers are used for all call-back routines. If you have@-'*LPowerPC development tools, you can compile the source code to build a native-*PowerPC application. ÿÃ
  18. *Â(
  19. ¥$„-)WApple events support has been added. This is a prerequisite for using the Text ServicesÇ-*RManager. Unfortunately, InlineInputSample still doesnÕt open documents, so some of-*your events will go unanswered. ÿÑ(
  20. ¥ˇ—-)Usegmentation has been removed. This is a tiny application by todayÕs standards, and I”-5*OdidnÕt want to deal with all the different runtime models that exist these days-*'(traditional Macintosh, A/UX, PowerPC). ÿÑ
  21. 8Â(
  22. ¥ìP-&)Lhandling of the Font, Size, and Style menus has been improved. Items are nowt^-*Pcorrectly checked, outlined, and dimmed. They still donÕt fully follow the Human±<-    *WInterface Guidelines however. E.g., if the selection uses more than one font, all fonts-*Kbeing used should be marked with a Ò‹Ó, but instead thereÕs no mark at all. ÿÃ
  23. Â(
  24. ¥)-usage of the C preprocessor has been reduced. ÿí
  25. *Â(
  26. ¥I&- )Rit now requires at least system software version 6.0. In theory it should run withEÒ-*Tanything starting from version 4.1 (when styled TextEdit was introduced), but nobody-*(cares about those old versions any more. ÿÑ
  27. Â(
  28. ¥$„-)Uspecial code for A/UX has been removed. IÕm not familiar with the various versions ofΩ≈-    *UA/UX and tools for it, so I didnÕt want to pretend that I know what IÕm doing. Please-*TdonÕt look at this as sample code for A/UX. My understanding is that A/UX these daysÿ ◊# ÿÄÿ◊
  29. FÂ,Times
  30. -.+&TdonÕt look at this as sample code for A/UX. My understanding is that A/UX these daysÕV-
  31. *Qsupports almost anything that works on the Mac OS, so InlineInputSample might run-*$on it. But then again, it might not. ÿµ
  32. Â(
  33. ¥J-)Mit uses the TeachText icon instead of the DTS dogcow. Dogs and cows have very-*Ksensitive connotations in some cultures, so they donÕt make for good icons. ÿß(
  34. ¥‚J-)Sit uses only ASCII characters in menus and alerts so they display correctly on non--*Roman systems. ÿß
  35. FÂm¸-(
  36. ZIn the source code, youÕll find all modications that are necessary to support inline inputUV-*Umarked with Ò#if qInlineÓ. In case your application doesnÕt support Apple events yet,è»-
  37. *Umodifications for Apple events have been marked with Ò#if qAppleEventsÓ. The makefileÑu-*Tlets you build an application AppleEventsSample, which supports Apple events but not-*7inline input, and SimpleSample, which supports neither. ÿµ
  38. Â*¬-(
  39. WInlineInputSample is by no means a complete application. Things that a real application-(
  40. 6should handle, but InlineInputSample doesnÕt, include: ÿß
  41. Â(
  42. ¥)Undo and Redo. ÿí(
  43. ¥)reading and writing documents. ÿí
  44. *Â(
  45. ¥ª¬-)Rerror handling that always gives the user a meaningful message when something goes$„-*Xwrong and returns the application to a well-defined state where the user can continue to-*work. ÿÑ
  46. Â(
  47. NPlease look at the make file for information on how to build the applications. <w
  48. ◊#
  49. (&ï2(&FInlineInputSample 1F1ó 1F1óÿg